package cn.lsh.service;

import java.util.List;
import java.util.Set;

import cn.lsh.pojo.User;

public interface UserService {

	public User findUserByUserName(String username);
	
	public User createUser(User user);
	
	public void changePassword(Long userId,String newPassword);
	
	public void correlationRoles(Long userId,Long... roleIds);
	
	public void uncorrelationRoles(Long userId,Long... roleIds);
	
	public Set<String> findRoles(String username);
	
	public Set<String> findPermissions(String username);
	
	public List<User> findUsers();
}
